package com.smarthome.core.operationservicemanager;

import java.util.List;

import com.smarthome.domain.bean.ShCompanyExpress;
import com.smarthome.domain.vo.boss.Combobox;
import com.smarthome.domain.vo.boss.DataGrid;
import com.smarthome.domain.vo.boss.PageHelper;


/**
 * 
* @ClassName: CompanyExpressService
* @Description: 快递公司service接口
* @author cyj
* @date 2016年3月21日 下午9:03:34
*
 */
public interface CompanyExpressService {

	/**
	 * 
	* @Title: getById 
	* @Description: 根据id获取快递公司 
	* @param id
	* @return
	* ShCompanyExpress
	* @throws 
	* @author cyj
	 */
	ShCompanyExpress getById(Long id);
	
	
	
	/**
	 * 
	* @Title: qeuryDataGrid 
	* @Description: 获取快递公司datagrid
	* @param companyExpress
	* @param page
	* @return
	* DataGrid
	* @throws 
	* @author cyj
	 */
	DataGrid qeuryDataGrid(ShCompanyExpress companyExpress,PageHelper page);
	
	
	/**
	 * 
	* @Title: saveOrUpdate 
	* @Description: 新增或修改 
	* @param companyExpress
	* @return
	* Integer
	* @throws 
	* @author cyj
	 */
	Integer saveOrUpdate(ShCompanyExpress companyExpress);
	
	/**
	 * 
	* @Title: delete 
	* @Description: 根据id删除 
	* @param id
	* @return
	* Integer
	* @throws 
	* @author cyj
	 */
	Integer delete(Long id);
	
	/**
	 * 
	* @Title: getCombobox 
	* @Description: 根据小区id获取快递公司combobox 
	* @param residenceId
	* @return
	* List<Combobox>
	* @throws 
	* @author cyj
	 */
	List<Combobox> getCombobox(Long residenceId);

	/**
	 * 
	* @Title: checkName
	* @Description: 检测同一地址是否有同名
	* @param companyExpress
	* @return 
	* boolean  
	* @throws
	 */
	boolean checkName(ShCompanyExpress companyExpress);
}
